package com.shuyun.java8;

import java.util.function.Consumer;

/**
 * @description:
 * @author: shuai.chen@shuyun.com
 * @date: 2023/1/19 2:00 PM
 */
public class ConsumerDemo {

    public static void main(String[] args) {
        Consumer<String> consumer = new Consumer<String>() {
            @Override
            public void accept(String s) {
                String cacheKey = s + 123;
                System.out.println(cacheKey);
            }
        };
        consumer.accept("hello");
    }



}
